package com.siwei.mes.mapper.erp;

import com.siwei.mes.common.base.BaseMapperErp;
import com.siwei.mes.entity.erp.Project;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ERP-工程(Project)表数据库访问层
 *
 * @author linzi
 * @since 2024-07-30 15:30:33
 */
public interface ProjectMapper extends BaseMapperErp<Project> {
    /**
     * 获取所有
     *
     * @param entity
     * @return
     */
    List<Project> getList(Project entity);

    /**
     * 根据id获取
     *
     * @param proId
     * @return
     */
    Project loadByProId(@Param("proId") Integer proId);

    /**
     * 根据工程名称查询
     *
     * @param projectName
     * @return
     */
    Project selectByProjectName(@Param("projectName") String projectName);
}
